begintownscript;
variables;
short choice,i;

body;
beginstate init_state;
i = 0;
while(char_ok(i) == 0){
	i = i + 1;
}
message_dialog("I've traveled all over these woods, so traveling at night was not a problem. I made it as far as I could, but every man must rest, and even the desire to make it home to the Chapel was eventually overpowered by exhaustion.","I slept for longer than I intended to, but when I woke up I was feeling fresh. I made even better time, and was just a few miles from the Chapel before the sun had reached its zenith.");
break;

beginstate exit_state;
break;

beginstate start_state;
if((get_flag(3,0) == 1) && (get_flag(3,1) == 0)){
	inc_flag(3,1,1);
	end();
}
if(get_flag(3,1) == 1){
	set_flag(3,1,2);
	message_dialog("I turned the corner, shielding my eyes to look out across the trees to the north. The sun was high in the sky and blazing bright, but it didn't glint off the tiled roof. The Chapel was obscured by a gray haze.","It was smoke.");
}
break;

beginstate 10;
block_entry(1);
message_dialog("I was almost home, there was no way I was turning back.","");
break;

beginstate 11;
if(get_flag(3,0) == 0){
	set_flag(3,0,1);
	message_dialog("There was a boulder at this one curve in the road that served as a kind of landmark for me.","Not that I need landmarks to navigate these woods anymore, it's just that I always know that when I round that corner the Chapel's roof will be visible over the treetops. Sounds kind of sappy, but hey it's my home and it's a beautiful sight.");
	message_dialog("So after a week of absence, futile hunting, and long nights on the road, I think I actually skipped a few steps when I saw that boulder.","When I rounded the corner though-- well this is where the story takes a turn for the tragic.");
}
break;

beginstate 12;
message_dialog("That last mile was probably the fastest I've ever run, I'm not even sure my feet were touching the ground. Each step brought me closer to the Chapel, but each step also brought its destruction into better focus.","");
move_to_new_town(4,23,39);
break;

beginstate 100;
block_entry(1);
break;